package org.example.test;

public interface ISubcriber<T> {
    /**
     * 订阅
     * @param subscribePublish
     */
    public void subcribe(SubscribePublish subscribePublish);

    /*
    退订
     */
    public void unSubcribe(SubscribePublish subscribePublish);

    /**
     * 接收消息
     * @param publisher
     * @param message
     */
    public void update(String publisher,T message);

}
